package com.xnyzc.lhy.order.controller.sys.user;


import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.common.util.CheckUtil;
import com.xnyzc.lhy.common.util.TokenUtil;
import com.xnyzc.lhy.order.service.system.IOaSysUserHandService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 管理员处理事项记录表 前端控制器
 * </p>
 *
 * @author huxuekuo
 * @since 2019-07-24
 */
@RestController
@RequestMapping("/sys/user/oaSysUserHand")
public class OaSysUserHandController {

    @Autowired
    private IOaSysUserHandService handService;


    /**
     * 今日处理事项
     *
     * @return
     */
    @ApiOperation(value = "今日处理事项", notes = "今日处理事项")
    @GetMapping(value = "/todayHandler")
    public Rv todayHandler(
            @ApiParam(name = "type", value = "事件类型") Integer type,
            @ApiParam(name = "vehNo", value = "车牌号") String vehNo
    ) {
        long tokenUserId = TokenUtil.getTokenUserId();
        return handService.todayHandler(tokenUserId + "", type, vehNo);
    }
}
